package com.zbkj.service.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zbkj.common.model.merchant.Merchant;
import com.zbkj.common.model.storeclerk.StoreClerk;
import com.zbkj.common.request.*;
import com.zbkj.common.response.StoreClerkPageDataBrandResponse;
import com.zbkj.common.response.StoreClerkPageDataResponse;

import java.util.List;
/**
* @author dazongzi
* @description StoreClerkService 接口
* @date 2025-06-27
*/
public interface StoreClerkService extends IService<StoreClerk> {

    Boolean create(StoreClerkSaveRequest storeClerkSaveRequest);
    Boolean createBrand(StoreClerkSaveBrandRequest storeClerkSaveRequest);

    /**
     * 分页查询店小二设置表
     * @param request 查询条件
     * @param pageParamRequest 分页对行
     * @return 查询结果
     */
    List<StoreClerkPageDataResponse> getList(StoreClerkSearchRequest request, PageParamRequest pageParamRequest);

    List<StoreClerkPageDataBrandResponse> getListBrand(StoreClerkSearchBrandRequest request, PageParamRequest pageParamRequest);

    boolean batchDelete(List<Integer> idList);
    boolean batchDeleteBrand(List<Integer> idList);

    /**
     * 商户入驻或新增商户自动添加到店小二
     * @param merchant
     */
    void regAutoAdd(Merchant merchant);

    boolean autoCreateBrand(StoreClerkAutoCreateBrandRequest storeClerkSaveRequest);
}